package com.hex.ds.hdrs.app.dao;


import com.hex.bigdata.hbda.base.BaseDao;
import com.hex.ds.hdrs.app.po.AppAgentRelationPo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Package com.hex.ds.hdrs.app.dao
 * @ClassName AppAgentRelationDao
 * @Description 应用与节点关联表Dao接口
 * @Author yu liuyang
 * @Date 2023/4/16 10:32
 * @Version v1.0
 **/
@Repository
public class AppAgentRelationDao extends BaseDao {

    /**
     * @Method queryList <br>
     * @Param [appAgentRelation] <br>
     * @Return java.util.List<com.hex.ds.hdrs.app.po.AppAgentRelation> <br>
     * @Description 查询应用与节点关联表 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/16 10:35 <br>
     * @Version V1.0 <br>
     */
    public List<AppAgentRelationPo> queryList(AppAgentRelationPo appAgentRelationPo) {
        return this.selectList(AppAgentRelationPo.class, "com.hex.ds.hdrs.app.dao.AppAgentRelationDao.queryList", appAgentRelationPo);
    }

    /**
     * @Method insert <br>
     * @Param [appAgentRelation] <br>
     * @Return int <br>
     * @Description 插入用户与节点关联 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/18 16:09 <br>
     * @Version V1.0 <br>
     */
    public int insert(AppAgentRelationPo appAgentRelationPo) {
        return this.insert("com.hex.ds.hdrs.app.dao.AppAgentRelationDao.insert", appAgentRelationPo);
    }

    /**
     * @Method deleteByAppCode <br>
     * @Param [appCode] <br>
     * @Return int <br>
     * @Description 根据应用编码删除应用与节点关联 <br>
     * @Author yu liuyang <br>
     * @Date 2023/4/16 10:36 <br>
     * @Version V1.0 <br>
     */
    public int deleteByAppCode(String appCode) {
        return this.delete("com.hex.ds.hdrs.app.dao.AppAgentRelationDao.deleteByAppCode", appCode);
    }
}